#! /bin/bash
cd /home/ubuntu/projects/code/alarm-service
git pull --all
mvn -U clean package -Dmaven.test.skip=true 
cp /home/ubuntu/projects/code/alarm-service/docker-compose.yml /home/ubuntu/projects/alarm-service
cp /home/ubuntu/projects/code/alarm-service/src/main/resources/application.yml /home/ubuntu/projects/alarm-service
cd /home/ubuntu/projects/alarm-service
sudo docker compose down
sudo docker compose up -d